//
//  HLUIHelper.h
//  YueYue
//
//  Created by hulu001 on 2023/5/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

// 恋爱铃是否打开
#define kUserLoveBell [NSString stringWithFormat:@"KeyUserLoveBellOpen-%@",[HLLoginModel dataWithKeychain].userId]
// 今天恋爱铃是否打开
#define kUserTodyLoveBell [NSString stringWithFormat:@"KeyUserTodayLoveBell-%@",[HLLoginModel dataWithKeychain].userId]

#define cl_SDK_APPID @"1Ljxj1YH"
#define CS53_APPID @"w3ms30zx6l"
#define CS53_ARG @"10549631"
#define WX_APPID @"wx052296f1e889df6f"
#define WX_APPSecrect @"4725000e982b6b638f4350ae3bb356da"
#define APP_UNIVERSAL_LINK @"https://www.dabei.cc/"
#define ClientID @"WoYu"

#if DEBUG
#define NIM_Key @"eaa0a4d8807dbaab3e44b208ce52d086"
#define NIM_Cer_Name @"dev_cer"
#define HTTP_SEVER_URL @"http://api.yuejian.yuetalks.cn/"
#define OSSHTTPS @"http://oss.yuetalks.cn/"
#define LIVE_APPID 775782310
//#define NIM_Key @"fb191421cc29631d7a9d0f9c262961e7"
//#define NIM_Cer_Name @"yueyuejisuliaoes_dis_apns_cer"
//#define HTTP_SEVER_URL @"https://pfstatic.yueyueworld.com/"
//#define OSSHTTPS @"http://oss.yuetalks.cn/"
//#define LIVE_APPID 1151248289

#else
#define NIM_Key @"fb191421cc29631d7a9d0f9c262961e7"
#define NIM_Cer_Name @"yueyuejisuliaoes_dis_apns_cer"
#define HTTP_SEVER_URL @"https://pfstatic.yueyueworld.com/"
#define OSSHTTPS @"http://oss.yuetalks.cn/"
#define LIVE_APPID 1151248289

#endif



#define HLMainColor [UIColor qmui_colorWithHexString:@"#FE60CB"]
#define HLAideColor1 [UIColor qmui_colorWithHexString:@"#0099FF"]
#define HLAideColor2 [UIColor qmui_colorWithHexString:@"#FD8901"]
#define HLAideColor3 [UIColor qmui_colorWithHexString:@"#0AF3DC"]
#define HLAideColor4 [UIColor qmui_colorWithHexString:@"#FF1362"]
#define HLAideColor5 [UIColor qmui_colorWithHexString:@"#FF5A91"]
#define HLAideColor6 [UIColor qmui_colorWithHexString:@"#00AAA9"]
#define HLTextColor1 [UIColor qmui_colorWithHexString:@"#1A1A1A"]
#define HLTextColor2 [UIColor qmui_colorWithHexString:@"#878788"]
#define HLTextColor3 [UIColor qmui_colorWithHexString:@"#C6C6C6"]
#define HLLineColor [UIColor qmui_colorWithHexString:@"#ECECEB"]
#define HLBackgroundColor [UIColor qmui_colorWithHexString:@"#F4F4F6"]
#define HLGradientLeftColor [UIColor qmui_colorWithHexString:@"#FF5A91"]
#define HLGradientRightColor [UIColor qmui_colorWithHexString:@"#FF6AAD"]


extern NSString *const HLSelectedThemeIdentifier;
extern NSString *const HLMustAgreeIdentifier;
extern NSString *const HLListPageSize;
extern NSString *const HLUserPhotoWallCount;
extern NSString *const HLSquareCommentTipIdentifier;
extern NSString *const HLUserDetailScrollDidChangeNotification;
extern NSString *const HLUserFollowDidChangeNotification;
extern NSString *const HLVideoViewDidChangeNotification;
extern NSString *const HLUpdateStickTopNotification;
extern NSString *const HLScreenChangedNotification;
extern NSString *const HLH5GuardianUrl;
extern NSString *const HLH5InvitationUrl;
extern NSString *const HLH5IncomeUrl;
extern NSString *const HLH5MemberCenterUrl;
extern NSString *const HLH5MemberCenterRecordUrl;
extern NSString *const HLH5ExchangeUrl;
extern NSString *const HLH5CertSettingUrl;
extern NSString *const HLH5CertSettingVideoUrl;
extern NSString *const HLH5QRCodeCustomerServiceUrl;   //客服认证链接
extern NSString *const HLH5QRCodeNoticeUrl; //推广工会链接
extern NSString *const HLH5ProtocolUserUrl;
extern NSString *const HLH5ProtocolPrivacyUrl;
extern NSInteger const HLCommonTagA;
extern NSInteger const HLCommonTagB;
extern NSInteger const HLCommonSmsSecondCount;


typedef enum : NSUInteger {
    HLFriendTypeAttention = 1,
    HLFriendTypeMine = 2,
    HLFriendTypeBlack = 3,
    HLFriendTypeFans = 4,
} HLFriendType;

typedef enum : NSUInteger {
    HLGiftListTypeList,  // 普通礼物
    HLGiftListTypeBag, // 背包礼物
} HLGiftListType;

typedef enum: NSUInteger {
    HLPriceTypeMessage,
    HLPriceTypeVoice,
    HLPriceTypeVideo,
} HLPriceType;

typedef enum: NSUInteger {
    HLSquareListTypeAttention = 1,
    HLSquareListTypeNew,
    HLSquareListTypeDiscover,
}HLSquareListType;

typedef enum: NSUInteger {
    HLSquareNoticeListTypeGood = 1,
    HLSquareNoticeListTypeComment,
    HLSquareNoticeListTypeReplay,
}HLSquareNoticeListType;

typedef enum: NSUInteger {
    HLLookingTypeMine,
    HLLookingTypeMe,
}HLLookingType;

typedef enum : NSUInteger {
    HLSquarePostTypeImage,
    HLSquarePostTypeVideo,
    HLSquarePostTypeLink,
} HLSquarePostType;

typedef void (^HLCommonCallback)(id);
typedef void(^HLCommonCallbackStringBlock)(NSString *);
typedef void(^HLCommonCallbackBoolBlock)(BOOL);
typedef void(^HLCommonCallbackBoolStringBlock)(BOOL isSuccess, NSString *message);

@interface HLUIHelper : NSObject

+ (UIImage *)imagePlaceholder;

+ (UIImage *)avatarPlaceholder;

+ (UIImage *)avatarBigPlaceholder;

// 真人标签
+ (QMUIButton *)realIconView;

// vip标签
+ (QMUIButton *)vipIconView;

// 财富标签
+ (QMUIButton *)wealthIconViewWithLevel:(NSString *)level;

+ (QMUIButton *)sexAgeIconViewWithSex:(NSString *)sex age:(NSString *)age;

+ (QMUIButton *)iconIDViewWithId:(NSString *)eid;

+ (QMUIButton *)sexIconViewWithSex:(NSString *)sex;

+ (QMUIButton *)sexIconViewWithSex:(NSString *)sex age:(NSString *)age;

+ (void)showAlertInfoWithTitle:(NSString *)title content:(NSString *)content;

+ (void)showAlertWithContent:(NSString *)content
callBack:(HLCommonCallbackBoolBlock)callback;

+ (void)showAlertWithTitle:(NSString *)title
                   content:(NSString *)content
callBack:(HLCommonCallbackBoolBlock)callback;

+ (void)showAlertWithTitle:(NSString *)title
                   content:(NSString *)content
           leftButtonTitle:(NSString *)left
          rightButtonTitle:(NSString *)right
callBack:(HLCommonCallbackBoolBlock)callback;


+ (void)chatWithUserId:(NSString *)userId
            controller:(UIViewController *)controller;

+ (void)h5WithURL:(NSString *)urlString
       controller:(UIViewController *)controller;

+ (void)callWithUser:(HLUserInfoModel *)user;

+ (void)greetWithParam:(NSDictionary *)params
              callBack:(HLCommonCallbackBoolStringBlock)callback;

+ (void)blackWithUserId:(NSString *)userID
                  black:(BOOL)isBlack
               callback:(HLCommonCallbackBoolBlock)callback;

+ (void)followWithUserId:(NSString *)userID
                  follow:(BOOL)isFollow
                callback:(HLCommonCallbackBoolBlock)callback;

+ (void)getUserInfoWithSessionId:(NSString *)sessionId
                        callback:(HLCommonCallback)callback;

+ (UIWindow *)keyWindow;

+ (void)showSessionViewControllerWithSession:(NIMSession *)session;

+ (void)loginWithParams:(NSDictionary *)params;

+ (void)setRootLogin;

+ (void)jumpWithKey:(NSString *)key param:(NSString *)param;

+ (void)setRootTabBar;

+ (void)showRequiredLabelWithView:(UIView *)view;

+ (void)setRootInfo;

+ (void)setRootLaunch;

+ (void)showAlertMustAgreeInfo;

+ (void)showAlertMustAgreeProtocalWithCallback:(HLCommonCallbackBoolBlock)callback;

+ (BRPickerStyle *)pickerStyle;

@end

NS_ASSUME_NONNULL_END
